// ApplicationService1.java
package com.mysteel.cyx.ddd.application.services;


import com.mysteel.cyx.ddd.infrastructure.adater.MessagingQueueAdapter;

public class ApplicationService {
    private final MessagingQueueAdapter messagingQueueAdapter;

    public ApplicationService(MessagingQueueAdapter messagingQueueAdapter) {
        this.messagingQueueAdapter = messagingQueueAdapter;
    }

    public void sendMessageToQueue(String message) {
        messagingQueueAdapter.sendMessage(message);
    }
}
